﻿using Demo03.Domain;
using Microsoft.EntityFrameworkCore;

namespace Demo03.Repository;

/// <summary>
/// 应用DbContext
/// </summary>
public class AppDbContext : DbContext
{
    /// <summary>
    /// 构造函数
    /// </summary>
    /// <param name="options">选项参数</param>
    public AppDbContext(DbContextOptions options) : base(options)
    {
    }

    /// <summary>
    /// 文章列表
    /// </summary>
    public DbSet<Article>? Articles { get; set; }
}